package com.yb.serviceImpl;


import com.yb.dao.userDao;
import com.yb.entity.User;
import com.yb.service.userService;

public class userServiceImpl implements userService {

	private userDao userdao;

	public void setUserdao(userDao userdao) {
		this.userdao = userdao;
	}

	
	public User getById(int id) {

		return userdao.getById(id);

	}

	
	public void save(User user) {

		userdao.save(user);
	}

}
